﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditEmail.aspx.cs" Inherits="EditEmail" %>
<%@ Register Src="Footer.ascx" TagName="Footer" TagPrefix="uc3" %>
<%@ Register Src="CommonSearch.ascx" TagName="CommonSearch" TagPrefix="uc2" %>
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>修改个人信息</title>
<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="style/common.css" />
<link rel="stylesheet" type="text/css" href="style/Segment/Header.css" />
<link rel="stylesheet" type="text/css" href="style/Segment/Search.css" />
<link rel="stylesheet" type="text/css" href="style/Segment/Home.css" />
<link rel="stylesheet" type="text/css" href="style/Segment/Friends.css" />
<link rel="stylesheet" type="text/css" href="style/Segment/Footer.css" />
<link rel="stylesheet" type="text/css" href="style/Segment/EditUserInfo.css" />
<script src="js/footrip.js" type="text/javascript"></script>
<script type="text/javascript">
function UpdateEmail_onclick() 
{
    var userProfile = {"Email":$("txtEmail").value};
    UpdateUserProfileField(userProfile,updateEmails,updateEmailsFailed);
}
function updateEmails()
{
    $("lblOldEmail").innerHTML = $("txtEmail").value;
    $("txtEmail").value = "";
}
function updateEmailsFailed()
{
    alert("该email已存在!");
}
</script>
</head>
<body id="normalbody">
    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
       <Services>
           <asp:ServiceReference Path="WSLogin.asmx" />
       </Services>
     </asp:ScriptManager>        
<div id="container">
    <uc1:Header ID="Header1" runat="server" />
    <uc2:CommonSearch ID="CommonSearch1" runat="server" />
   <!--Main-->

   <div id="leftcont">    
      <h1 style="padding-bottom:10px;">编辑个人信息...</h1>
      <div class="boxTitle"><a href="editInfo.aspx">基本信息</a> | <a href="editUserHead.aspx">修改头像</a> | <font class="select">更改帐号</font> | <a href="editpassword.aspx">修改密码</a></div>
      <div id="edit_UserInfo">
         <table cellpadding="0" cellspacing="0" border="0">
           <tr>
             <td style="width:150px; text-align:right; height:40px;"><b>旧Email：</b></td>
             <td style="width:10px;"></td>
             <td style="width:400px;"><label id="lblOldEmail"><%=oldEmail%></label></td>
           </tr>
           <tr>
             <td style="width:150px; text-align:right; height:40px;"><b>新Email：</b></td>
             <td style="width:10px;"></td>
             <td style="width:400px;"><input id="txtEmail" name="txtEmail" value="" type="text" /></td>
           </tr>
           <tr><td colspan="3" height="20"></td></tr>
     <tr style="text-align:right; height:40px;">
             <td></td>
             <td></td>
             <td style="text-align:left;"><input type="button" class="butn_green" value="保存修改" id="btnUpdateEmail" onclick="return UpdateEmail_onclick();" />
               &nbsp;&nbsp;&nbsp;<a href=""><b>取消</b></a></td>
           </tr>
           
        </table>
      </div>
   </div>
  
   <div id="sidercont">
      <ul style="padding-top:20px;">
      <li><b>更改账号信息提示</b></li>
      <li>1. 为了更好地保护你的账户安全，需要验证你拥有这个Email地址。</li>
      <li>2. 我们会向你的新Email地址发送一封电子邮件，请单击电子邮件正文中的链接或按照说明操作。</li>
      <li></li>
      </ul>
   </div>
   <div class="clear">
      <uc3:Footer ID="Footer1" runat="server" />
  </div>

   
   

<!---Footer--->

</div>
    </form>
</body>
</html>
